package com.xq.Handler;

import com.xq.Game;
import com.xq.Hunter;

/**
 * @description:
 * @author: 软妹倩哟
 * @date: Created in 2020/6/7 15:22
 * @version: 1.0
 * @modified By:
 */
public class HandlerFight extends Handler {
    public HandlerFight(Game game) {
        super(game);
    }

    @Override
    public void doCmd(String word) {
        Hunter hunter = Hunter.getHunter();
        if (hunter.getCurrentRoom().getMonster().isLive) {
            hunter.fight(hunter.getCurrentRoom().getMonster());
        } else {
            System.out.println("这里什么也没有...");
        }
    }
}
